function plotTemplate(main, axes)
%% Notation
ap = main.template.ap;
aa = main.template.aa;
wa = main.template.wa;
wp = main.template.wp;
wpMAS = main.template.wpMAS;
wpMENOS = main.template.wpMENOS;
waMAS = main.template.waMAS;
waMENOS = main.template.waMENOS;

%% Clear axes

cla(axes);

%% Plot template

    switch main.template.filterType
        case 1 % Band-pass
                 plot(axes, [waMENOS/10 waMENOS],[aa aa],'Color','Black', 'LineWidth',2);   
                 plot(axes, [waMENOS waMENOS],[aa 0],'Color','Black', 'LineWidth',2);   
                 plot(axes, [wpMENOS wpMENOS],[ap 2*aa],'Color','Black', 'LineWidth',2);   
                 plot(axes, [wpMENOS wpMAS],[ap ap],'Color','Black', 'LineWidth',2); 
                 plot(axes, [wpMAS wpMAS],[ap 2*aa],'Color','Black', 'LineWidth',2); 
                 plot(axes, [waMAS waMAS],[aa 0],'Color','Black', 'LineWidth',2); 
                 plot(axes, [waMAS 10*waMAS],[aa aa],'Color','Black', 'LineWidth',2); 
                 
                 plot(axes, [waMENOS waMAS], [0 0],'Color','Black', 'LineWidth',2); 

                 
            
        case 2 % Low-pass
        
         plot(axes, [wp/10 wp],[ap ap],'Color','Black', 'LineWidth',2);   
         plot(axes, [wp wp], [ap 2*aa],'Color','Black', 'LineWidth',2);
         plot(axes,[wa wa],[0 aa],'Color','Black', 'LineWidth',2);
         plot(axes,[wa 10*wa],[aa aa],'Color','Black', 'LineWidth',2);
         
         plot(axes, [wp/10 wa],[0 0],'Color','Black', 'LineWidth',2);   

    
        case 3 % High-pass

         plot(axes, [wa/10 wa],[aa aa],'Color','Black', 'LineWidth',2);   
         plot(axes, [wa wa], [0.001 aa],'Color','Black', 'LineWidth',2);
         plot(axes,[wp wp],[ap 2*aa],'Color','Black', 'LineWidth',2);
         plot(axes,[wp 10*wp],[ap ap],'Color','Black', 'LineWidth',2);

         plot(axes, [wa 10*wp], [0 0],'Color','Black', 'LineWidth',2);

               
        case 4 % Band-Reject
            
                 plot(axes, [wpMENOS/10 wpMENOS],[ap ap],'Color','Black', 'LineWidth',2);   
                 plot(axes, [wpMENOS wpMENOS],[ap 2*aa],'Color','Black', 'LineWidth',2);   
                 plot(axes, [waMENOS waMENOS],[aa 0],'Color','Black', 'LineWidth',2);   
                 plot(axes, [waMENOS waMAS],[aa aa],'Color','Black', 'LineWidth',2); 
                 plot(axes, [waMAS waMAS],[aa 0],'Color','Black', 'LineWidth',2); 
                 plot(axes, [wpMAS wpMAS],[ap 2*aa],'Color','Black', 'LineWidth',2); 
                 plot(axes, [wpMAS 10*wpMAS],[ap ap],'Color','Black', 'LineWidth',2); 
                 
                 plot(axes, [wpMENOS/10 waMENOS], [0 0],'Color','Black', 'LineWidth',2); 

                 plot(axes, [waMAS wpMAS*10], [0 0],'Color','Black', 'LineWidth',2); 
        
    end


end